package com.yunpeng.dynamic.page.common.constants;

import com.yunpeng.dynamic.page.common.dto.AopRequestDTO;


/**
 * ConfigConstantValues 配置类常量数据
 *
 * @author : Moore(hemw)
 * @date : 2020-03-14
 */
public class ConfigConstantValues {

    /**
     * 请求的对象封装
     */
    public final static ThreadLocal<AopRequestDTO> THREAD_AOP_REQUEST_OBJECT = new ThreadLocal<>();

    /**
     * 默认清理
     */
    static {
        THREAD_AOP_REQUEST_OBJECT.remove();
    }

    /**
     * 取ip用
     */
    public final static String UNKNOWN = "unknown";
    /**
     * 取ip用
     */
    public final static String X_FORWARDED_FOR = "X-Forwarded-For";
    /**
     * 取ip用
     */
    public final static String PROXY_CLIENT_IP = "Proxy-Client-IP";
    /**
     * 取ip用
     */
    public final static String WL_PROXY_CLIENT_IP = "WL-Proxy-Client-IP";
    /**
     * 取ip用
     */
    public final static String HTTP_CLIENT_IP = "HTTP_CLIENT_IP";
    /**
     * 取ip用
     */
    public final static String HTTP_X_FORWARDED_FOR = "HTTP_X_FORWARDED_FOR";
    /**
     * 取ip用
     */
    public final static int IP_LENGTH = 15;
    /**
     * 应用抛出html类异常的自定义视图名称（404错误等）
     */
    public final static String ERROR_PAGE_VIEW = "error";

    /**
     * 本地ip
     */
    public final static String LOCALHOST = "127.0.0.1";

    /**
     * 本地ip
     */
    public final static String LOCAL_ADDRESS = "0:0:0:0:0:0:0:1";

    /**
     * accessToken 参数名
     */
    public static final String ACCESS_TOKEN = "accessToken";

    /**
     * 应用名称
     */
    public static final String APPLICATION_NAME = "dynamic_page";
}
